#include<graphics.h>
#include<iostream>
#include "E_Point.h"
#include "E_Transform.h"
using namespace std;
int mains() {
	HWND hwnd = initgraph(500, 500);
	setbkcolor(WHITE);
	cleardevice();
	setlinecolor(LIGHTBLUE);
	setlinestyle(PS_SOLID, 2);
	E_Point P[2] = {
		{100,20},
		{400,20}
	};
	E_Transform form;
	for (;1;) {
		int ty = 10;
		moveto(P[0].x, P[0].y);
		lineto(P[1].x, P[1].y);
		form.SetMatrix(P, 2);
		form.E_Translate(0,ty);
		Sleep(1000);
		cleardevice();
		if (P[0].y >= 500) { 

			P[0].y = 0; 
			P[1].y = 0;
		}
	}

	getchar();
	closegraph();
	return 0;
}